// 封装接口
import axios from "axios";
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const service =axios.create({
    baseURL:process.env.VUE_APP_BASE_API,
    timeout:50000
})
service.interceptors.request.use(config=>{
    console.log("请求拦截"+axios.baseURL);

    return config
})
service.interceptors.response.use(res=>{
    return res.data
})
export default service